<?php
//include "../config/db_config.php";
include "../lib/kelola_kategori.php";

$kelola_kategori = new kelola_kategori();
$result=$kelola_kategori->select_all_kategori();
?>

<div id="header" class="container">
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			</a>
			
			
			<a class="brand" href="tampilan_home.php">Beranda</a>
			<a class="brand" href="view_tentangkami.php">Tentang Kami</a>
			<a class="brand">Kontak</a>
			
			<div class="nav-collapse collapse">
			<form class="navbar-form pull-right" method="post">
			</form>
			<form class="navbar-form pull-right" method="post">
			<?php 
			if($is_home){
				echo '<a href="login.php" class="btn btn-small btn-primary pull-right">Technopreneur</a>';
			}
			?>
			</form>
				
				</div>
			</div>
		</div>
	</div>

	<div class="hero-unit"style="background-image:url('../images/header.jpg');" >
		<h1>Smart Commerce</h1>
		<blockquote class="pull-right"> 
			<p>Website khusus Technopreneur Surabaya</p>
		</blockquote>
	</div>
			

			
	<!--By : Suviani-->
	<br>
	<form class="form-inline" action="pencarian_kategori.php" method="post">
		<div class="input-append">
		<input class="input-xxlarge" style="height:30px; width:966px" id="pencarian" name="pencarian" type="text" placeholder="Kata Pencarian...">
			<div class="btn-group">
			<select name="kategori" style="width:150px;">
				<option href="pencarian.php" value="0">Semua Kategori</option>
				<?php
				while ($row = mysql_fetch_assoc($result)){
					echo '<option value="'.$row['ID_KATEGORI'].'">'.$row['NAMA_KATEGORI'].'</option>';
				}
				?>
			</select>
			<button class="btn btn-success" type="submit" name="submit" id="submit" value="search">Cari</button>
			</div>
		</div>
	</form>
</div>